package cn.ml.gaoJi.api.equals;

public class EqualsTest1 {
    public static void main(String[] args) {

        String a = "hello";
        String b = "HELLO";
        System.out.println(a.equals(b));//区分大小写
        System.out.println(a.equalsIgnoreCase(b));//不区分大小写


        String n = "3";
        if (!("1".equals(n) || "2".equals(n))) {
            System.out.println("n的值  无效！");
        } else {
            System.out.println("n的值  有效");
        }


    }
}
